﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TechMadeira.Core.Logging
{
    public class TextBoxRecorder : IRecorder
    {
        public TextBoxRecorder( TextBox aTexBox )
        {
            TextBox = aTexBox;
        }

        private TextBox TextBox { get; set; }

        public void Record( string aFormat, params object[] aArgs )
        {
            TextBox.AppendText( string.Format( aFormat, aArgs ) );
            TextBox.AppendText( Environment.NewLine );
        }
    }
}
